package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/8/4 下午1:22
 */
public class CreateOrderResult implements Parcelable{

    /**
     * number : nxw915139549051342
     * price : 1860.00
     * buytime : 1513954905
     * status : 1
     * uid : 9
     * vip_start_time : 1759766400
     * vip_ent_time : 1775491200
     * product_id : 2
     */

    private String number;//订单号
    private String price;//价格
    private String buytime;//购买时间
    private String status;//状态
    private String uid;//购买用户id
    private String vip_start_time;//会员开始时间
    private String vip_ent_time;//会员结束时间
    private String product_id;//产品id

    public String getNumber() { return number;}

    public void setNumber(String number) { this.number = number;}

    public String getPrice() { return price;}

    public void setPrice(String price) { this.price = price;}

    public String getBuytime() { return buytime;}

    public void setBuytime(String buytime) { this.buytime = buytime;}

    public String getStatus() { return status;}

    public void setStatus(String status) { this.status = status;}

    public String getUid() { return uid;}

    public void setUid(String uid) { this.uid = uid;}

    public String getVip_start_time() { return vip_start_time;}

    public void setVip_start_time(String vip_start_time) { this.vip_start_time = vip_start_time;}

    public String getVip_ent_time() { return vip_ent_time;}

    public void setVip_ent_time(String vip_ent_time) { this.vip_ent_time = vip_ent_time;}

    public String getProduct_id() { return product_id;}

    public void setProduct_id(String product_id) { this.product_id = product_id;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.number);
        dest.writeString(this.price);
        dest.writeString(this.buytime);
        dest.writeString(this.status);
        dest.writeString(this.uid);
        dest.writeString(this.vip_start_time);
        dest.writeString(this.vip_ent_time);
        dest.writeString(this.product_id);
    }

    public CreateOrderResult() {}

    protected CreateOrderResult(Parcel in) {
        this.number = in.readString();
        this.price = in.readString();
        this.buytime = in.readString();
        this.status = in.readString();
        this.uid = in.readString();
        this.vip_start_time = in.readString();
        this.vip_ent_time = in.readString();
        this.product_id = in.readString();
    }

    public static final Creator<CreateOrderResult> CREATOR = new Creator<CreateOrderResult>() {
        @Override
        public CreateOrderResult createFromParcel(Parcel source) {return new CreateOrderResult(source);}

        @Override
        public CreateOrderResult[] newArray(int size) {return new CreateOrderResult[size];}
    };
}
